package com.yincai.carefreewater.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ${zk} on 2018\1\25 0025.
 */

public class Advertising  implements Serializable{

    @Override
    public String toString() {
        return "Advertising{" +
                "status=" + status +
                ", data=" + data +
                ", message='" + message + '\'' +
                ", error='" + error + '\'' +
                '}';
    }

    /**
     * status : true
     * data : {"period":"2018-01-26","playList":[{"id":1,"name":"图片广告名称","priority":2,"type":1,"playtime":20,"url":"/xxx.png"},{"id":2,"name":"视频广告名称","priority":1,"type":2,"playtime":15,"url":"/aaa.mp4"}]}
     * message : 处理成功
     */


    private boolean status;
    private DataBean data;
    private String message;
    private  String error;

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        @Override
        public String toString() {
            return "DataBean{" +
                    "period='" + period + '\'' +
                    ", playList=" + playList +
                    '}';
        }

        /**
         * period : 2018-01-26
         * playList : [{"id":1,"name":"图片广告名称","priority":2,"type":1,"playtime":20,"url":"/xxx.png"},{"id":2,"name":"视频广告名称","priority":1,"type":2,"playtime":15,"url":"/aaa.mp4"}]
         */


        private String period;
        private List<PlayListBean> playList; //播放列表

        public String getPeriod() {
            return period;
        }

        public void setPeriod(String period) {
            this.period = period;
        }

        public List<PlayListBean> getPlayList() {
            return playList;
        }

        public void setPlayList(List<PlayListBean> playList) {
            this.playList = playList;
        }
        public static class PlayListBean {  //广告类
            @Override
            public String toString() {
                return "PlayListBean{" +
                        "id=" + id +
                        ", name='" + name + '\'' +
                        ", priority=" + priority +
                        ", type=" + type +
                        ", playtime=" + playtime +
                        ", url='" + url + '\'' +
                        '}';
            }

            /**
             * id : 1
             * name : 图片广告名称
             * priority : 2
             * type : 1
             * playtime : 20
             * url : /xxx.png
             */


            private int id;
            private String name;
            private int priority;
            private int type;
            private int playtime;
            private String url;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getPriority() {
                return priority;
            }

            public void setPriority(int priority) {
                this.priority = priority;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getPlaytime() {
                return playtime;
            }

            public void setPlaytime(int playtime) {
                this.playtime = playtime;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }
        }
    }
}
